package dome3;

class Car extends Vehicle {
    int wheels;

    public Car(String brand, int wheels) {
        super(brand);
        this.wheels = wheels;
    }

    public void drive() {
        System.out.println(brand + "有" + wheels + "个轮子，正在行驶");
    }
}